package com.czk.track;

/**
 * 设置threadLocal
 *
 * @Author:ChenZhangKun
 * @Date: 2021/8/10 9:38
 */
public class TrackContext {
    private static final ThreadLocal<String> trackLocal = new ThreadLocal<>();

    public static void clear() {
        trackLocal.remove();
    }

    public static String get() {
        return trackLocal.get();
    }

    public static void setLinkedId(String linkId) {
        trackLocal.set(linkId);
    }
}
